﻿using System.Collections.Generic;
using ProjectFootball.Foundation.Entities;

namespace ProjectFootball.Models.Entities.Main
{
    public class Team : BaseHeaderEntity<TeamV>
    {
        public Team()
        {
            Versions = new HashSet<TeamV>();
            MatchEventVs = new HashSet<MatchEventV>();
            Team1MatchVs = new HashSet<MatchV>();
            Team2MatchVs = new HashSet<MatchV>();
        }

        #region Navigation properties
        public virtual ICollection<MatchEventV> MatchEventVs { get; set; }
        public virtual ICollection<MatchV> Team1MatchVs { get; set; }
        public virtual ICollection<MatchV> Team2MatchVs { get; set; }
        public virtual ICollection<UserTeam> UserTeams { get; set; }
        #endregion
    }
}
